import Vue from 'vue'
import VueRouter from 'vue-router'
import goodsList from '../components/goodsList'
import shopCart from '../components/shopCart'

Vue.use(VueRouter)

const routes = [{
        path: '/',
        name: 'goodsList',
        component: goodsList
    },
    {
        path: '/shopCart',
        name: 'shopCart',
        component: shopCart
    }
]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router